package com.itany.corejava.code16_反射;

/**
 * @author MissChen
 * @date 2024年03月28日 8:44
 */
public class Emp {

    @Value(value="id")
    private String id;
    @Value(value="name")
    private String name;
    @Value(value="salary")
    private String Salary;

    public Emp() {
    }

    public Emp(String id, String name, String salary) {
        this.id = id;
        this.name = name;
        Salary = salary;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSalary() {
        return Salary;
    }

    public void setSalary(String salary) {
        Salary = salary;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", Salary='" + Salary + '\'' +
                '}';
    }
}
